package com.ruoyi.business.util;

/**
 * 地址类型
 *
 * 
 * @version v 0.1 2017/10/20 Date 18:17 w_jiangpengfei Exp $
 */
public enum AddressTypeEnum {

//    H("H", "户籍地址"),L("L", "居住地址"), C("C", "单位地址"), Apply("apply", "授信地址"), Loan("loan", "提现地址"), Realname("real_name", "实名地址");
    H("H", "Household registration address"),L("L", "Residential address"), C("C", "Work address"), Apply("apply", "Credit address"), Loan("loan", "Loan address"), Realname("real_name", "Realname address");

    public static AddressTypeEnum getType(String v) {
        switch (v) {
            case "H":
                return AddressTypeEnum.H;
            case "L":
                return AddressTypeEnum.L;
            case "C":
                return AddressTypeEnum.C;
            case "Apply":
                return AddressTypeEnum.Apply;
            case "Loan":
                return AddressTypeEnum.Loan;
            case "Realname":
                return AddressTypeEnum.Realname;
        }
        return null;
    }


    private String key;

    private String value;

    private AddressTypeEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
